<!--
 * @Author: Ryan
 * @Date: 2021-05-27 11:26:54
 * @LastEditors: Ryan
 * @LastEditTime: 2021-05-28 14:05:26
 * @Description: 导出Excel的文件名
 * @FilePath: /ztky-care-page/src/views/example/excel/components/FilenameOption.vue
-->

<template>
  <div style="display:inline-block;">
    <!-- <label class="radio-label" style="padding-left:0;">文件名: </label> -->
    <el-input v-model="filename" placeholder="请输入文件名 (默认 excel-list)" style="width:300px;" prefix-icon="el-icon-document" />
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: String,
      default: ''
    }
  },
  computed: {
    filename: {
      get() {
        return this.value
      },
      set(val) {
        this.$emit('input', val)
      }
    }
  }
}
</script>
